<%@ include file="taglibs.jsp" %>


<%@page import="net.sourceforge.stripes.util.CryptoUtil"%><h1>
	<fmt:message key="menu.title" bundle="${yabamResources}"/>
</h1>

<c:choose>
	<c:when test="${!empty loggedOwner}">
		<ul>
			<li>
				<stripes:link beanclass="org.yabam.action.HomeAction">
					<fmt:message key="home.title" bundle="${yabamResources}"/>
				</stripes:link>
			</li>
			<li>
				<fmt:message key="edit.title" bundle="${yabamResources}"/>
				<ul>
					<li>
						<stripes:link beanclass="org.yabam.action.EditOwnersAction">
							<fmt:message key="edit.owners.menu.title" bundle="${yabamResources}"/>
						</stripes:link>
					</li>
					<li>
						<stripes:link beanclass="org.yabam.action.EditAccountsAction">
							<fmt:message key="edit.accounts.menu.title" bundle="${yabamResources}"/>
						</stripes:link>
					</li>
					<li>
						<stripes:link beanclass="org.yabam.action.EditThirdPartiesAction">
							<fmt:message key="edit.thirdParties.menu.title" bundle="${yabamResources}"/>
						</stripes:link>
					</li>
					<li>
						<stripes:link href="/editCategories.jsp">
							<fmt:message key="edit.categories.menu.title" bundle="${yabamResources}"/>
						</stripes:link>
					</li>
				</ul>
			</li>
			<li>
				<stripes:link beanclass="org.yabam.action.LogoutAction">
					<fmt:message key="logout.title" bundle="${yabamResources}"/>
				</stripes:link>
			</li>
		</ul>
	</c:when>
	<c:otherwise>
		<ul>
			<li>
				<stripes:link href="/">
					<fmt:message key="index.title" bundle="${yabamResources}"/>
				</stripes:link>
			</li>
			<li>
				<stripes:link href="/login.jsp">
					<fmt:message key="login.title" bundle="${yabamResources}"/>
				</stripes:link>
			</li>
			<li>
				<stripes:link href="/register.jsp">
					<fmt:message key="register.title" bundle="${yabamResources}"/>
				</stripes:link>
			</li>
		</ul>
	</c:otherwise>
</c:choose>